package com.blogAdmin.common.config;

import com.blogAdmin.common.controller.AdminManageController;
import com.blogAdmin.common.controller.ArticleListController;
import com.blogAdmin.common.controller.CommentsManageController;
import com.blogAdmin.common.controller.IndexController;
import com.blogAdmin.common.controller.LoginController;
import com.blogAdmin.common.controller.MemberManageController;
import com.blogAdmin.common.controller.PictureListController;
import com.blogAdmin.common.controller.ProductManageController;
import com.blogAdmin.common.controller.StatisticsManageController;
import com.blogAdmin.common.controller.SystemManageController;
import com.jfinal.config.Routes;

public class AdminRoute extends Routes {

	@Override
	public void config() {
		setBaseViewPath("/WEB-INF/admin");
		add("/login", LoginController.class,"");
		add("/index", IndexController.class,"");
		
		//资讯管理 
		add("article-list",ArticleListController.class,"/article");
		//图片管理 
		add("picture-list",PictureListController.class,"/picture");
		//产品管理 
		add("product",ProductManageController.class,"/product");
		//评论管理 
		add("comments",CommentsManageController.class,"/comments");
		//会员管理
		add("member",MemberManageController.class,"/member");
		//管理员管理 
		add("admin",AdminManageController.class,"/admin");
		//系统统计 
		add("Statistics",StatisticsManageController.class,"/Statistics");
		//系统管理 
		add("system",SystemManageController.class,"/system");
	}

}
